Linux IO Uring
The low-level io_uring
userspace interface for Rust.
Usage
To use io-uring
crate, first add this to your Cargo.toml
:
[]
= "0.5"
Next we can start using io-uring
crate.
The following is quick introduction using Read
for file.
use ;
use AsRawFd;
use ;
Note that opcode Read
is only available after kernel 5.6.
If you use a kernel lower than 5.6, this example will fail.
Test and Benchmarks
You can run the test and benchmark of the library with the following commands.
$ cargo run --package io-uring-test
$ cargo bench --package io-uring-bench
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in io-uring by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.